package com.zmzncs.lmtc.module.customer.pojo.cust_ticket;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 任建波
 * @since 2020-10-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("cust_ticket")
@ApiModel(value="CustTicket对象", description="")
public class CustTicket implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "优惠券id")
    private Long ticketId;

    @ApiModelProperty(value = "优惠券名称")
    private String ticketName;

    @ApiModelProperty(value = "客户id")
    private Long customerId;

    @ApiModelProperty(value = "使用状态（0：未用 1：已用）")
    private Integer status;

    @ApiModelProperty(value = "使用类型，1.通用 2.时长 3.月租 4.充值")
    private Integer useType;

    @ApiModelProperty(value = "发放类型（1：平台发放，2：活动发放，3：领取）")
    private Integer grantType;

    @ApiModelProperty(value = "使用开始时间")
    private Date useBeginTime;

    @ApiModelProperty(value = "使用结束时间")
    private Date useEndTime;

    @ApiModelProperty(value = "使用界限金额")
    private BigDecimal useLimitMoney;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal preferentialMoney;

    @ApiModelProperty(value = "优惠类型，1.满减 2.折扣")
    private Integer preferentialType;

    @ApiModelProperty(value = "领取时间")
    private Date receiveTime;

    @ApiModelProperty(value = "有效期天数")
    private Integer expiryDays;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;


}
